﻿namespace ZR.ServiceCore.Model;

[SugarTable("rate_limit_rule")]
[Tenant("0")]
public class RateLimitRule
{
    [SugarColumn(IsPrimaryKey = true)]
    [JsonConverter(typeof(ValueToStringConverter))]
    public long Id { get; set; }
    
    [JsonConverter(typeof(ValueToStringConverter))]
    public long IpRateLimitPolicyId { get; set; }
    
    public string Endpoint { get; set; }
    
    public string Period { get; set; }
    
    public double Limit { get; set; }
    
    public char Flag { get; set; } = '0';
}